<ul class="clearfix">
{loop $tags $i $t}

{if $i%2==0}<li {if $i==0}class="first"{/if}>{/if}

 <span><a href="{$MODULE[$moduleid][linkurl]}search.php?kw={urlencode($t[word])}"{if $target} target="{$target}"{/if} class="b" rel="nofollow">{$t[word]}</a></span>
 
{if $i%2==1}</li> {/if}


{/loop}
</ul>
 